package com.skycong.hello77.activity;

import android.app.Activity;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.ListView;
import com.skycong.hello77.R;
import com.skycong.hello77.adapter.InflateTestAdapter;
import java.util.Arrays;
import java.util.List;

/**
 * Created by Kiki on 2018/4/27.
 */

public class InflateTestActivity extends Activity {
    private ListView mListView;
    private InflateTestAdapter inflateTestAdapter;
    private List<String> mDatas = Arrays.asList("hello", "java", "Android");

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.inflate_listview_activity);
        Log.i("msg", "执行到这里了");

        mListView = (ListView) findViewById(R.id.id_listview);
        inflateTestAdapter = new InflateTestAdapter(this, mDatas);
        mListView.setAdapter(inflateTestAdapter);

    }
}
